import Date from "./Date";
import Card from "../Card/Card";
import "./LogItem.css";

const LogItem = (props) => {
  const { desc, time, month, day } = props.logitem;
  return (
    <Card className="item">
      <Date month={month} day={day} />
      {/* 内容 */}
      <div className="content">
        <div className="desc">{desc}</div>
        <div className="time">{time}</div>
      </div>
    </Card>
  );
};

export default LogItem;
